//
//  UserAccountViewModel.h
//  OC-微博
//
//  Created by Apple on 15/11/10.
//  Copyright © 2015年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
@class UserAccount;
@interface UserAccountViewModel : NSObject
//用户模型属性
@property (nonatomic, strong) UserAccount *account;
//单例
+ (instancetype)shardViewModel;
- (void)loadAccessTolen:(NSString *)code finished:(void(^)(BOOL isSuccessed))finished;
- (void) loadUserInfo:(UserAccount *)account finished:(void(^)(BOOL isSuccessed))finished;
//定义用户登录标记
@property (nonatomic, assign) BOOL userlogin;
//定义token
@property (nonatomic, copy) NSString *token;
//用户头像URL
@property (nonatomic, strong) NSURL *avatarUrl;
@end
